# all map types in the game
$MAP_LAND         = 0
$MAP_CLIFF_W      = 1
$MAP_CLIFF_E      = 2
$MAP_CLIFF_S      = 3
$MAP_CLIFF_N      = 4
$MAP_CLIFF_NW_OUT = 5
$MAP_CLIFF_NE_OUT = 6
$MAP_CLIFF_SW_OUT = 7
$MAP_CLIFF_SE_OUT = 8
$MAP_CLIFF_NW_IN  = 9
$MAP_CLIFF_NE_IN  = 10
$MAP_CLIFF_SW_IN  = 11
$MAP_CLIFF_SE_IN  = 12
$MAP_LAND_RIVER   = 13
$MAP_LAND_BRIDGE  = 14
$MAP_LAND_FORT    = 15
$MAP_CLIFF        = 16
$MAP_SEA          = 17
$MAP_SEA_W        = 18
$MAP_SEA_E        = 19
$MAP_SEA_S        = 20
$MAP_SEA_N        = 21
$MAP_SEA_NW_OUT   = 22
$MAP_SEA_NE_OUT   = 23
$MAP_SEA_SW_OUT   = 24
$MAP_SEA_SE_OUT   = 25
$MAP_SEA_NW_IN    = 26
$MAP_SEA_NE_IN    = 27
$MAP_SEA_SW_IN    = 28
$MAP_SEA_SE_IN    = 29
$MAP_SEA_RIVER    = 30
$MAP_SEA_PORT     = 31
$MAP_RIVER_CLIFF  = 32
$MAP_LAND_ROAD_NS = 33
$MAP_LAND_ROAD_EW = 34
$MAP_LAND_ROAD_NE = 35
$MAP_LAND_ROAD_NW = 36
$MAP_LAND_ROAD_SE = 37
$MAP_LAND_ROAD_SW = 38

$world = []

class World
  def initialize
    # world array
    $world = [[17,17,17,17,17,27,24, 0, 0, 0, 0, 0, 0, 0, 0,15, 0, 0, 0, 0, 0, 0, 0, 0,19,17,17,17,17,17,17,17],
              [17,17,17,17,17,17,18, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,19,17,17,17,17,17,17,17],
              [17,17,17,17,17,17,27,21,24, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,25,26,17,17,17,17,17,17,17],
              [17,17,17,17,17,17,17,17,27,21,21,21,21,21,21,21,21,21,21,21,21,21,21,26,17,17,17,17,17,17,17,17],
              [17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17],
              [17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17],
              [17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17],
              [17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17],
              [17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17],
              [17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17],
              [17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17],
              [17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17],
              [17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17],
              [17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17],
              [17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,29,20,20,20,28,17,17,17],
              [17,17,17,29,20,31,20,28,17,17,17,29,20,20,28,17,17,17,17,17,17,17,17,17,18, 0, 0, 0,23,28,17,17],
              [20,20,20,22, 0, 0, 0,23,20,30,20,22, 0, 0,23,20,20,20,20,30,20,20,20,20,22, 0, 0, 0, 0,23,20,20],
              [ 7, 0, 0, 0, 0, 0, 0, 0, 0,13, 0, 0, 0, 0, 0, 0, 0, 0, 0,13, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8],
              [10, 7, 0, 0, 0, 0, 0, 0, 0,13, 0, 0, 0, 0, 0, 0, 0, 0, 0,13, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 9],
              [16,10, 7, 0, 0, 0, 0, 0, 0,13, 0, 8, 3, 3, 3, 7, 0, 0, 0,13, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 9,16],
              [16,16, 1, 0, 0, 0, 0, 0, 0,13, 0, 2,16,16,16, 1, 0, 0, 0,13, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2,16,16],
              [16,16, 1, 0, 0, 0,15, 0, 0,13, 0, 2,16,16,16, 1, 0, 0, 0,13, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2,16,16],
              [16,16, 1, 0, 0, 0,33, 0, 0,13, 0, 2,16,16,16, 1, 0, 0, 0,13, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2,16,16],
              [16,16, 1, 0, 0, 0,33, 0, 0,13, 0, 2,16,16,16, 1, 0, 0, 0,13, 0, 0, 0,15, 0, 0, 0, 0, 0, 2,16,16],
              [16,16, 1, 0, 0, 0,33, 0, 0,13, 0, 6, 4, 4, 4, 5, 0, 0, 0,13, 0, 0, 0,33, 0, 0, 0, 0, 0, 2,16,16],
              [16,16,10, 3, 7, 0,33, 0, 0,13, 0, 0, 0, 0, 0, 0, 0, 0, 0,13, 0, 0, 0,33, 0, 0, 0, 0, 0, 2,16,16],
              [16,16,16,16, 1, 0,37,34,34,14,34,34,34,34,34,34,34,34,34,14,34,34,34,38, 0, 0, 0, 0, 0, 2,16,16],
              [16,16,16,16, 1, 0, 0, 0, 0,13, 0, 0, 0, 0,15, 0, 0, 0, 0,13, 0, 0, 0, 8, 3, 3, 7, 0, 0, 2,16,16],
              [16,16,16,16,10, 3, 7, 0, 0,13, 0, 0, 0, 0, 0, 0, 0, 0, 0,13, 0, 0, 8, 9,16,16, 1, 0, 0, 2,16,16],
              [16,16,16,16,16,16, 1, 0, 0,13, 0, 0, 0, 0, 0, 0, 0, 0, 0,13, 0, 8, 9,16,16,16,10, 3, 3, 9,16,16],
              [16,16,16,16,16,16,10, 7, 0,14, 0, 0, 0, 0, 0, 0, 0, 0, 0,13, 0, 2,16,16,16,16,16,16,16,16,16,16],
              [16,16,16,16,16,16,16,10, 3,32, 3, 3, 3, 3, 3, 3, 3, 3, 3,32, 3, 2,16,16,16,16,16,16,16,16,16,16]]
    # end of world array
  end
end